package com.lftea.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;

import com.lftea.dao.IStorekHouseDAO;
import com.lftea.po.StoreHouse;
import com.lftea.service.IStoreHouseService;

@Service("storeHouseServiceImpl")
@RemotingDestination
public class StoreHouseServiceImpl implements IStoreHouseService {

	@Resource(name = "storeHouseDAOImpl")
	private IStorekHouseDAO storeHouseDAOImpl;

	@RemotingInclude
	public List<StoreHouse> findAll() {
		return storeHouseDAOImpl.findAll();
	}

	@RemotingInclude
	public StoreHouse findById(long storeHouseId) {
		return storeHouseDAOImpl.findById(storeHouseId);
	}

	@RemotingInclude
	public void remove(StoreHouse storeHouse) {
		storeHouseDAOImpl.remove(storeHouse);
	}

	@RemotingInclude
	public void save(StoreHouse storeHouse) {
		storeHouseDAOImpl.save(storeHouse);
	}

	@RemotingInclude
	public boolean isEmpty(StoreHouse storeHouse) {		
		return storeHouseDAOImpl.isEmpty(storeHouse);
	}

}
